package cn.iocoder.yudao.module.member.controller.app.user;

import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.module.member.controller.admin.userusedfeedback.vo.UserUsedFeedbackPageReqVO;
import cn.iocoder.yudao.module.member.controller.admin.userusedfeedback.vo.UserUsedFeedbackRespVO;
import cn.iocoder.yudao.module.member.controller.admin.userusedfeedback.vo.UserUsedFeedbackSaveReqVO;
import cn.iocoder.yudao.module.member.dal.dataobject.userusedfeedback.UserUsedFeedbackDO;
import cn.iocoder.yudao.module.member.service.userusedfeedback.UserUsedFeedbackService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.util.List;

import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "用户 APP - 用户反馈")
@RestController
@RequestMapping("/member/user-used-feedback")
@Validated
public class AppUserUsedFeedbackController {

    @Resource
    private UserUsedFeedbackService userUsedFeedbackService;

    @PostMapping("/create")
    @Operation(summary = "创建用户反馈")
    public CommonResult<Long> createUserUsedFeedback(@Valid @RequestBody UserUsedFeedbackSaveReqVO createReqVO) {
        return success(userUsedFeedbackService.createUserUsedFeedback(createReqVO));
    }


}